package cn.kgc.javaweb.service;

import cn.kgc.javaweb.entity.SysUser;
import cn.kgc.javaweb.utils.ResponseResultUtil;

import java.util.List;

/**
 * @author: mosin
 * @version: v1.0  2022/6/7
 */
public interface UserService {

    ResponseResultUtil  login(String username, String password);

    boolean register(String username, String securePassword);

    boolean resetPasswordById(long id, String md5);

    ResponseResultUtil selectAll(String page, String limit);

    boolean deleteById(Integer id);

    boolean updatePwd(Integer id);

    boolean selectByUserName(String username);

    boolean addUser(SysUser user);

    boolean updateUser(SysUser user);

    ResponseResultUtil searchByUserName(String username, Integer page, Integer limit);

    boolean updateState(String id, Integer state);
}
